
<ui-view class="b_ec">
	<header class="common_head-box">
		<div class="common_head">
			<!-- href="#/chanPinXiangQing/{{id}}" -->
			<a class="cart_back_pra" ng-click="backButton()"><img src="image/back.png" alt="" /></a>
			<span>购物车</span>
			<h5 ng-click="chageBW()" class="gwc_bj_box" ng-class="{disnone:!bgbol}">编辑 </h5>
			<h5 ng-click="chageBW()" class="gwc_bj_box disnone">完成 </h5>
		</div>
	</header>
	<div class="msg_bg wgc_kuangao" ng-class="{disnone:bgbol}">
		<div class="msg_top">
			<a class="love_list_back" href=""><img src="../../image/love_list/images/love_back.jpg" alt="  "/></a>
			<b>购物车</b>
		</div>
		<div class="buyCart">
			<div class="kong_cart">
				<img src="image/kong_cart.png" alt=""/>
				<button ng-click="tiaozhuansc()">立即去逛逛~</button>
			</div>
		</div>
	</div>
	<div class="gwc_container_box" ng-class="{disnone:!bgbol}">
		<div on-finish class="swiper-container gwc-swp" ng-repeat="(k,v) in gwcdata">
			<div class="swiper-wrapper">
				<div class="swiper-slide gwc_section_box">
					<img one-check ng-click="save($event)" class="gwc-select" data-cls="{{v.cart_id}}" src="image/suc_weixuanzhe.png" />
					<div class="gwc_product">
						<img ng-src="{{v.goods_photo}}" alt="" ng-click="tiaozhuan(v.goods_id)"/>
						<div class="gwc_prohibit" ng-class="{'disnone':!clsbol[k]}">
							售罄
						</div>
					</div>
					<div class="gwc_text_title">
						<h5 ng-click="tiaozhuan(v.goods_id)">{{v.goods_name}}</h5>
						<h6 ng-click="tiaozhuan(v.goods_id)">{{v.color_desc}}，{{v.size_desc}}</h6>
						<div class="gwc_price_container">
							<div>
								<span class="gwc_rmb_26" ng-class="{'gwc_disable':clsbol[k]}">¥</span><span class="gwc_price" ng-class="{'gwc_disable':clsbol[k]}">{{v.into_cart_goods_price|number:2}}</span>
							</div>
							<div class="gwc_taotals">
								<div class="gwc_chenhao">
									×<span  class="gwc-num">{{v.num}}</span>
								</div>
								<div class="gwc_taotals-ctrl disnone gwc_btn-box">
									<!--减少按钮,ngclick触发UpdateCar,并传值-->
									<button id="gwcminus" class="{{v.cart_id}}" ng-click="UpdateCart($event,k,-1)" >-</button>
									<input class="gwc-num-input gwc-sty-input" type="text" ng-value="v.num" disabled="">
									<button id="gwcadd" class="{{v.cart_id}}" ng-click="UpdateCart($event,k,+1)" >+</button>
									<!--文本框直接输入数量,或者显示增加减少后的当前数量-->
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="swiper-slide gwc-ctrl">
					<div class="gwc-ctrl-left" ng-click="xihuan($event)">
						喜欢
					</div>
					<div class="gwc-ctrl-right" ng-click="deletes($event,v.cart_id)">
						删除
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="gwc_zzc_queren disnone">
		<div class="gwc_zzc_box">
			<div class="gwc_zzc_sc">
				真的要删除这个产品吗？
			</div>
			<div class="gwc_zzc_btn_box">
				<button ng-click="tfselect($event)">取消</button>
				<button ng-click="tfselect($event)" class="gwc_zzc_confirm">确认</button>
			</div>
		</div>
	</div>
	<footer class="gwc_footer_jiesuan"  ng-class="{disnone:!bgbol}">
		<div class="gwc_footer_flex" ng-show='is_js'>
			<img class=" all-select" all-check ng-click="allsave($event)" src="image/suc_weixuanzhe.png" alt="" />
			<div class="gwc_price_box">
				<div>结算:</div><span class="gwc_rmb_sty24">¥</span><span class="gwc_rmb_sty30">{{allPrices()}}</span>
			</div>
			<div class="gwc_jiesuan_btn" ng-click="tiaozhuandd()">
				结算
			</div>
		</div>
	</footer>
	<z-footer ng-if="!bgbol"></z-footer>
</ui-view>
